<?php


class User {
	private $id;
	private $first_name;
	private $last_name;
	private $email;
	private $password;
	private $new_password;
	//object
	private $status;
	private $privileges;
	//array of objects
	private $companies = Array();

	function __construct(Array $user) {
		$this->setEmail($user["email"]);
		$this->setFirstName($user["first_name"]);
		$this->setId($user["id"]);
		$this->setLastName($user["last_name"]);
		$this->setNewPassword($user["new_password"]);
		$this->setPassword($user["password"]);
		$this->setPrivileges($user["privileges"]);
		$this->setStatus($user["status"]);
	}


	public function setCompanies($companies) {
		$this->companies = $companies;
	}


	public function getCompanies() {
		return $this->companies;
	}


	public function setEmail($email) {
		$this->email = $email;
	}


	public function getEmail() {
		return $this->email;
	}


	public function setFirstName($first_name) {
		$this->first_name = $first_name;
	}


	public function getFirstName() {
		return $this->first_name;
	}


	public function setId($id) {
		$this->id = $id;
	}


	public function getId() {
		return $this->id;
	}


	public function setLastName($last_name) {
		$this->last_name = $last_name;
	}


	public function getLastName() {
		return $this->last_name;
	}


	public function setNewPassword($new_password) {
		$this->new_password = $new_password;
	}


	public function getNewPassword() {
		return $this->new_password;
	}


	public function setPassword($password) {
		$this->password = $password;
	}


	public function getPassword() {
		return $this->password;
	}


	public function setPrivileges($privileges) {
		$this->privileges = $privileges;
	}


	public function getPrivileges() {
		return $this->privileges;
	}


	public function setStatus($status) {
		$this->status = $status;
	}


	public function getStatus() {
		return $this->status;
	}
}
?>